.two-quadrant-chart {
  display: flex;

  .chart-wrapper {
    margin: 27px;
    margin-right: 0px;
    position: relative;

    .horizontal-line {
      position: absolute;
      top: 50%;
      border-top: 1px dashed rgba(255, 255, 255, 0.8);
      width: 100%;
    }

    .vertical-line {
      position: absolute;
      left: 50%;
      height: 100%;
      border-left: 1px dashed rgba(255, 255, 255, 0.8);
    }

    .top-tips {
      position: absolute;
      top: -27px;
      left: 0;
      width: 100%;
      height: 27px;
      display: flex;
      align-items: center;
      justify-content: center;

      span {
        font-size: 12px;
        color: #617185;
        line-height: 1em;
      }

      img {
        width: 13px;
        margin-left: 3px;
      }
    }

    .right-tips {
      position: absolute;
      right: -8px;
      width: 0px;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;

      span {
        font-size: 12px;
        color: #617185;
        line-height: 1.2em;
      }

      img {
        margin-bottom: 6px;
        width: 13px;
        margin-left: 0px;
        height: 8px;
        flex: 0 0 auto;
        transform: rotate(-90deg);
      }
    }

    .left-scale {
      position: absolute;
      left: -32px;
      width: 27px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      text-align: center;
      height: calc(100% + 16px);
      margin-top: -6px;

      span {
        color: #8b98a9;
        font-size: 12px;
      }
    }

    .bottom-scale {
      position: absolute;
      bottom: -28px;
      height: 28px;
      width: calc(100% + 20px);
      display: flex;
      justify-content: space-between;
      text-align: center;

      span {
        display: inline-block;
        margin-top: 8px;
        color: #8b98a9;
        font-size: 12px;
        line-height: 20px;
      }

      margin-left: -5px;
    }

    .active {
      .item {
        .ant-tooltip-placement-top {
          z-index: 888 !important;
        }

        .ant-tooltip-inner {
          background-color: rgba(0, 0, 0, 0.59);
        }

        .ant-tooltip-arrow {
          span {
            background-color: rgba(0, 0, 0, 0.59);
            transition: background 0.5s ease-in-out;
          }
        }
      }
    }

    .item {
      position: absolute;
      width: 10px;
      height: 10px;
      border: 3px solid white;
      border-radius: 50%;
      margin-left: -5px;
      margin-top: -5px;

      .ant-tooltip-placement-top {
        z-index: 0 !important;
      }

      .ant-tooltip-inner {
        box-shadow: 0px 6px 16px 0px rgba(7, 28, 81, 0.15);
        border-radius: 4px;
        background-color: rgba(0, 0, 0, 0.2);
        transition: background 0.5s ease-in-out;
        min-width: auto;
        min-height: auto;
        padding: 2px 8px;

        span {
          font-size: 12px;
          transform: scale(0.84);
        }
      }

      .ant-tooltip-arrow {
        width: 16px;
        height: 16px;

        span {
          background-color: rgba(0, 0, 0, 0.2);
          transition: background 0.5s ease-in-out;
          --antd-arrow-background-color: transparent;
          box-shadow: 0px 6px 16px 0px rgba(7, 28, 81, 0.15);
        }
      }
    }
  }

  .legend {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 79px;

    .item {
      display: flex;
      align-items: center;
      margin-bottom: 12px;

      >div {
        width: 10px;
        height: 10px;
        margin-right: 8px;
      }

      span {
        font-size: 12px;
        color: #9eadca;
      }
    }
  }
}


.ant-tooltip-inner {
  padding: 12px !important;

  // background-color: #ffffff !important;
  span {
    color: #000000;
  }
}